package com.jianyushe.mysqltest.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jianyushe.mysqltest.entity.Course;
import com.jianyushe.mysqltest.mapper.CourseMapper;
import com.jianyushe.mysqltest.service.ICourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Alvin
 * @since 2022-05-08
 */
@Service
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements ICourseService {
    @Autowired
    CourseMapper courseMapper;


    public  void test(){
        // 当前页
        // 页面大小条数
       Page<Course> page = new Page<>(1 ,1);
       courseMapper.selectPage(page, null);
       page.getRecords().forEach(System.out::println);
        //System.out.println(courseMapper.selectBatchIds("c001","t002"));
    }


}
